package com.lingrit.provider.exception;

/**
 * Created by JuiceYan on 2017/11/30.
 */
public class FpException extends RuntimeException{

    private ExceptionMsg exceptionMsg;

    public FpException(String message, Exception cause, ExceptionMsg exceptionMsg) {
        super(message,cause);
        this.exceptionMsg = exceptionMsg;
    }

    public FpException(String name,Exception exception) {
        super(name,exception);
    }

    public ExceptionMsg getExceptionMsg() {
        return exceptionMsg;
    }

    public FpException(ExceptionMsg exceptionMsg){
        super();
        this.exceptionMsg = exceptionMsg;
    }

    public FpException(Throwable cause, ExceptionMsg exceptionMsg) {
        super(cause);
        this.exceptionMsg = exceptionMsg;
    }

    public FpException(ExceptionMsg exceptionMsg, String message){
        super(message);
        this.exceptionMsg = exceptionMsg;
    }
}
